<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>系统管理-操作日志</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" /></head>

<body class="childrenBody">
<form class="layui-form">
	<blockquote class="layui-elem-quote quoteBox" id="tool">
		<div class="layui-inline">
			<label class="layui-input-inline">模块名称</label>
			<label class="layui-input-inline">
				<input type="text" class="layui-input" name="moduleName" placeholder="请输入模块名称" /></label>
			<label class="layui-input-inline">类名称</label>
			<label class="layui-input-inline">
				<input type="text" class="layui-input" name="className" placeholder="请输入类名称" /></label>
			<label class="layui-input-inline">方法名称</label>
			<label class="layui-input-inline">
				<input type="text" class="layui-input" name="methodName" placeholder="请输入方法名称" /></label>
			<label class="layui-input-inline">业务类型</label>
			<label class="layui-input-inline">
				<select name="businessType" id="businessType"></select>
			</label>
			<label class="layui-input-inline">方法名称</label>
			<label class="layui-input-inline">
				<input type="text" class="layui-input" name="method" placeholder="请输入方法名称" /></label>
			<label class="layui-input-inline">操作类别</label>
			<label class="layui-input-inline">
				<select name="operatorType" id="operatorType"></select>
			</label>
			<a class="layui-btn search_btn" lay-submit="" lay-filter="seacherBtn">搜索</a></div>
	</blockquote>
	<table id="entityList" lay-filter="entityList"></table>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript">layui.use(['jquery', 'pageUtil', 'table', 'dateUtil'],
    function() {
        var $ = layui.jquery,
            dateUtil = layui.dateUtil,
            table = layui.table,
            pageUtil = layui.pageUtil;
        var tableIns = null;
        pageUtil.initDict("sys_business_type,sys_operator_type,sys_oper_status",
            function(dictData) {
                pageUtil.showDict($("#businessType"), pageUtil.aceeptDictContentList(dictData, "sys_business_type"), "请选择业务类型");
                pageUtil.showDict($("#operatorType"), pageUtil.aceeptDictContentList(dictData, "sys_operator_type"), "请选择操作类别");
                var url = "/sysLogUse/page";
                var cols = [{
                    type: 'checkbox',
                    fixed: 'left'
                },
                    {
                        type: 'numbers',
                        title: '序号'
                    },
                    {
                        field: 'moduleName',
                        title: '模块名称',
                        align: 'center'
                    },
                    {
                        field: 'className',
                        title: '类名称',
                        align: 'center'
                    },
                    {
                        field: 'methodName',
                        title: '方法名称',
                        align: 'center'
                    },
                    {
                        field: 'businessType',
                        title: '业务类型',
                        align: 'center',
                        templet: function(d) {
                            return pageUtil.aceeptDictContentName(dictData, 'sys_business_type', d.businessType);
                        }
                    },
                    {
                        field: 'method',
                        title: '方法名称',
                        align: 'center'
                    },
                    {
                        field: 'operatorType',
                        title: '操作类别',
                        align: 'center',
                        templet: function(d) {
                            return pageUtil.aceeptDictContentName(dictData, 'sys_operator_type', d.operatorType);
                        }
                    },
                    {
                        field: 'operatorId',
                        title: '操作用户id',
                        align: 'center'
                    },
                    {
                        field: 'operUrl',
                        title: '请求地址',
                        align: 'center'
                    },
                    {
                        field: 'operIp',
                        title: '操作Ip地址',
                        align: 'center'
                    },
                    {
                        field: 'operLocation',
                        title: '操作地点',
                        align: 'center'
                    },
                    {
                        field: 'operParam',
                        title: '请求参数',
                        align: 'center'
                    },
                    {
                        field: 'operStatus',
                        title: '操作状态',
                        align: 'center',
                        templet: function(d) {
                            return pageUtil.aceeptDictContentName(dictData, 'sys_oper_status', d.operStatus);
                        }
                    },
                    {
                        field: 'errorMsg',
                        title: '错误消息',
                        align: 'center'
                    },
                    {
                        field: 'createTime',
                        title: '创建时间',
                        width: 190,
                        align: 'center',
                        templet: function(d) {
                            return dateUtil.formatDate(new Date(d.createTime), "yyyy-MM-dd hh:mm:ss");
                        }
                    }];
                tableIns = pageUtil.initDate(cols, url, true);
            });
    })
</script>
</body>

</html>